var Color = {
	Black: 			"#000000",
	White: 			"#FFFFFF",
	
	Red: 			"rgb(153, 10, 42)",
	lRed:			"rgb(183, 40, 72)",
	dRed:			"rgb(123, 0, 12)",
	
	Yellow: 		"rgb(255, 242, 30)",
	lYellow: 		"rgb(255,255,130)",
	dYellow: 		"rgb(225,212,0)",
	
	Grey: 			"rgb(77, 84, 89)",
	dGrey:			"rgb(47, 54, 59)",
	lGrey:			"rgb(107, 114, 119)",
	
	Blue: 			"rgb(56, 201, 255)",
	dBlue:			"rgb(26, 171, 225)",
	lBlue:			"rgb(86, 231, 255)",
	
	Green:			"rgb(144, 238, 144)",
	dGreen:			"rgb(76,145,65)",
	Orange:			"rgb(255, 165, 0)",
	
	None: 			"transparent"
};

var Shape = {
	Rectangle: 		1,
	Circle: 		2,
	Line:			3
};

var Graphic = {
	Shape: 			1,
	Image: 			2,
	Text: 			3
};

var MouseButtonState = {
	None: 			1,
	Pressed: 		2,
	Down: 			3,
	Released: 		4
};

var ElementState = {
	Hover: 			1,
	Selected: 		2,
	DblClickSelected:	3
};

var MainSectorAttributes = {
	width:			206,
	height:			95,
	fontsize:		"18",
	font:			"Helvetica, Arial",
	redColor:		Color.Red,
	lredColor:		Color.lRed,
	dredColor:		Color.dRed,
	yellowColor: 		Color.Yellow,
	lyellowColor:		Color.lYellow,
	dyellowColor:		Color.dYellow,
	grayColor:		Color.Grey,
	lgrayColor:		Color.lGrey,
	dgrayColor:		Color.dGrey,
	blueColor:		Color.Blue,
	lblueColor:		Color.lBlue,
	dblueColor:		Color.dBlue,
	style:			" "
};


var BackgroundRectangleAttributes = {
	width:			388,
	height:			219,
	redColor:		"rgb(190, 100, 120)",
	yellowColor:		"rgb(255, 247, 120)",
	grayColor:		"rgb(167, 171, 173)",
	blueColor:		"rgb(127, 220, 255)"
};

var TextAlignment = {
	Left:			0,
	Center:			1,
	Right:			2,
	Top:			3,
	Middle:			4,
	Bottom:			5
};

var InteractionMode = {
	SingleSelect:			0,
	MultiSelect:			1,
	MultiSelectDoubleClickFeature:	2
};

var BackButtonAttributes = {
	Color:			"rgb(204, 204, 204)",
	hoverColor:		"rgb(217, 217, 217)"
};

var SubSectorAttributes = {
	width:				140,
	height:				40,
	bgColor_Unselected:		"rgb(126, 126, 126)", 
	bgColor_Hover:			"rgb(170, 170, 170)",
	bgColor_Selected:		Color.dGreen,
	bgColor_DblClickSelected:	Color.Orange,
	disabledColor:			"rgb(50, 50, 50)",
	yOffset:			4,
	xOffset:			-12,
	textColor:			"rgb(230, 230, 230)",
	font:				"Helvetica, Arial",
	fontsize:			"12"
	
};

var ButtonType = {
	SubSector:		0,
	MainSector:		1
};

/* DO NOT CHANGE ID's */
var SubSector = {
	Industry: {
		MaterialsAndEngineering: {
			text: 	"Materials & |Engineering",
			x:	32,
			y:	50,
			id:	332,
			parent:	"industry",
			labelXOffset:	0,
			labelYOffset:	4
		},
		IndustrialChemicalAndMineral: {
			text:	"Industrial, Chemical & |Mineral",
			x:	180,
			y:	50,
			id:	357,
			parent:	"industry",
			labelXOffset:	0,
			labelYOffset:	4
		},
		AutomotiveAndTransport: {
			text:	"Automotive & |Transport",
			x:	32,
			y:	100,
			id:	318,
			parent:	"industry",
			labelXOffset:	0,
			labelYOffset:	4
		},
		AerospaceDefenceAndSecurity: {
			text:	"Aerospace, Defence |& Security",
			x:	32,
			y:	150,
			id:	302,
			parent:	"industry",
			labelXOffset:	0,
			labelYOffset:	4
		},
		ConstructionAndBuiltEnvironment: {
			text:	"Construction & built |environment",
			x:	332,
			y:	50,
			id:	5,
			parent:	"industry",
			labelXOffset:	0,
			labelYOffset:	4
		}
	},
	
	Digital: {
		ElectronicsAndHardware: {
			text: 	"Electronics & |Hardware",
			x:	32,
			y:	199,
			id:	277,
			parent:	"digital",
			labelXOffset:	0,
			labelYOffset:	4
		},
		Software: {
			text:	"Software",
			x:	32,
			y:	249,
			id:	251,
			parent:	"digital",
			labelXOffset:	0,
			labelYOffset:	9
		},	
		CreativeAndMedia: {
			text:	"Creative & Media",
			x:	32,
			y:	299,
			id:	233,
			parent:	"digital",
			labelXOffset:	0,
			labelYOffset:	9
		},
		Communications: {
			text:	"Communications",
			x:	32,
			y:	348,
			id:	212,
			parent:	"digital",
			labelXOffset:	0,
			labelYOffset:	9
		},
		FinancialServices: {
			text:	"Financial Services",
			x:	181,
			y:	348,
			id:	196,
			parent:	"digital",
			labelXOffset:	0,
			labelYOffset:	9
		},
		BusinessToBusinessServices: {
			text:	"Business to Business |Services",
			x:	332,
			y:	348,
			id:	181,
			parent:	"digital",
			labelXOffset:	0,
			labelYOffset:	4
		}
	},
	
	Environmental: {
		InfrastructureAndUtilities: {
			text:	"Infrastructure & |Utilities",
			x:	483,
			y:	50,
			id:	21,
			parent:	"environmental",
			labelXOffset:	0,
			labelYOffset:	4
		},
		EnvironmentalTechnology: {
			text:	"Environmental |technology",
			x:	633,
			y:	50,
			id:	34,
			parent:	"environmental",
			labelXOffset:	0,
			labelYOffset:	4
		},
		BiotechAndPharma: {
			text:	"Biotech & Pharma",
			x:	633,
			y:	100,
			id:	59,
			parent:	"environmental",
			labelXOffset:	0,
			labelYOffset:	9
		},
		HealthcareAndMedical: {
			text:	"Healthcare & Medical",
			x:	633,
			y:	150,
			id:	74,
			parent:	"environmental",
			labelXOffset:	0,
			labelYOffset:	9
		},
		PublicAdministrationAndEducation: {
			text:	"Public Administration |& Education",
			x:	633,
			y:	199,
			id:	95,
			parent:	"environmental",
			labelXOffset:	0,
			labelYOffset:	4
		}
	},
	
	Consumers: {
		FoodAndDrink: {
			text:	"Food & Drink",
			x:	633,
			y:	249,
			id:	114,
			parent:	"consumers",
			labelXOffset:	0,
			labelYOffset:	9
		},
		HousingClothingAndTextiles: {
			text:	"Housing, Clothing & |Textiles",
			x:	633,
			y:	299,
			id:	137,
			parent:	"consumers",
			labelXOffset:	0,
			labelYOffset:	4
		},
		LeisureAndLifestyle: {
			text:	"Leisure & Lifestyle",
			x:	633,
			y:	349,
			id:	157,
			parent:	"consumers",
			labelXOffset:	0,
			labelYOffset:	9
		},
		LandAndProperty: {
			text:	"Land & Property",
			x:	483,
			y:	349,
			id:	175,
			parent:	"consumers",
			labelXOffset:	0,
			labelYOffset:	9
		}
	}
}
;
var FontPointLUT = [
	{ "point":"6",	"pixel":"8" },
	{ "point":"7",	"pixel":"9" },
	{ "point":"8",	"pixel":"11" },
	{ "point":"9",	"pixel":"12" },
	{ "point":"10",	"pixel":"13" },
	{ "point":"11",	"pixel":"15" },
	{ "point":"12",	"pixel":"16" },
	{ "point":"13",	"pixel":"17" },
	{ "point":"14",	"pixel":"19" },
	{ "point":"15",	"pixel":"21" },
	{ "point":"16",	"pixel":"22" },
	{ "point":"17",	"pixel":"23" },
	{ "point":"18",	"pixel":"12" },
	{ "point":"20",	"pixel":"26" },
	{ "point":"22",	"pixel":"29" },
	{ "point":"24",	"pixel":"32" },
	{ "point":"26",	"pixel":"35" },
	{ "point":"27",	"pixel":"36" },
	{ "point":"28",	"pixel":"37" },
	{ "point":"29",	"pixel":"38" },
	{ "point":"30",	"pixel":"40" },
	{ "point":"32",	"pixel":"42" },
	{ "point":"34",	"pixel":"45" },
	{ "point":"36",	"pixel":"48" }
];